package com.yanqu.road.entity.activity.biaoju.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

@FieldTypeAnnotation(tableName = "t_s_activity_biaoju_level", desc = "镖局等级表")
public class BiaoJuLevelConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "镖局等级", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "升级经验（当前级所需的累计押镖经验")
    private int cost;
    @FieldTypeAnnotation(desc = "结算加成（千分比")
    private int incomeAdd;

    public BiaoJuLevelConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.cost = rs.getInt("cost");
        this.incomeAdd = rs.getInt("incomeAdd");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public int getCost() {
        return cost;
    }

    public int getIncomeAdd() {
        return incomeAdd;
    }
}
